<template>
	<canvas canvas-id="Canvas" style="width: 324px;height: 324px;"></canvas>
</template>
	 
	<script setup lang="ts">
		import{ref ,defineProps} from 'vue'
		const Width=ref(324)
		const props= defineProps({
			urls:String
		})
		console.log('urls',props.urls)
		const cxt=uni.createCanvasContext( 'Canvas' ,this)
cxt.beginPath();
uni.getImageInfo({
	src:props.urls,
	
	success: ({ width, height, path, orientation, type }) => {
		console.log('ok',path)
		cxt.drawImage(path,0,0,Width.value,Width.value)


cxt.drawImage('/static/show.png',0,0,Width.value,Width.value)
cxt.draw(true)
	},
	fail: (error) => {}
})
	</script>
	 
	<style lang="scss" >

	
	</style>